<div class="container tongji">
    <h3>发布统计</h3>
	<ul class=" clear">

		<li><a href="#">
				<h3>{:db('post')->whereBetweenTime('time_add',date('Y-m-d'))->count()}</h3><span>今天发布</span>
			</a></li>
		<li><a href="#">
				<h3>{:db('post')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-1 day")))->count()}</h3><span>昨天发布</span>
			</a></li>
		<li><a href="#">
				<h3>{:db('post')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-7 day")))->count()}</h3><span>近7天</span>
			</a></li>
		<li><a href="#">
				<h3>{:db('post')->count()}</h3><span>发布数量</span>
			</a></li>

 
	</ul>
    <h3>访问统计</h3>
    <ul class="tongji clear">
    
    	<li><a href="#">
    			<h3>{:db('click')->whereBetweenTime('time_add',date('Y-m-d'))->count()}</h3><span>今天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-1 day")))->count()}</h3><span>昨天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-7 day")))->count()}</h3><span>近7天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-30 day")))->count()}</h3><span>近30天</span>
    		</a></li>
    
     
    </ul>
   
    <h3>访客统计</h3>
    <ul class="tongji clear">
    
    	<li><a href="#">
    			<h3>{:db('click')->group('ip')->whereBetweenTime('time_add',date('Y-m-d'))->count('id')}</h3><span>今天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->group('ip')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-1 day")))->count()}</h3><span>昨天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->group('ip')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-7 day")))->count()}</h3><span>近7天</span>
    		</a></li>
    	<li><a href="#">
    			<h3>{:db('click')->group('ip')->whereBetweenTime('time_add',date("Y-m-d",strtotime("-30 day")))->count()}</h3><span>近30天</span>
    		</a></li>
    
     
    </ul>
</div>
 


